import java.io.*;
import java.net.*;

public class EchoClient{
   public static void main(String[] args) throws Exception{
      Socket s = new Socket("127.0.0.1", 20);
       DataOutputStream dos = new DataOutputStream(s.getOutputStream());

       dos.writeUTF(args[0]);

       DataInputStream dis = new DataInputStream(s.getInputStream());

       System.out.println(dis.readUTF());

       System.out.println(dis.readUTF());

       System.out.println(dis.readUTF());  
   }

}
